package com.guigu.vo;

import com.guigu.entity.Menus;
import com.guigu.entity.Roles;
import com.guigu.entity.User;
import com.guigu.entity.t_permission;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
public class UserVO extends User implements Serializable {
    private static final long serialVersionUID = -8135903499966348294L;
    private String account;
    private String createtime;
    private String avatar;
    private String brief;
    private List<Menus> menus;
    private List<Roles> roles;
    private List<t_permission> permissions;

    public String getaccount() {
        return account;
    }

    public void setaccount(String account) {
        this.account = account;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public List<Menus> getMenus() {
        return menus;
    }

    public void setMenus(List<Menus> menus) {
        this.menus = menus;
    }

    public List<Roles> getRoles() {
        return roles;
    }

    public void setRoles(List<Roles> roles) {
        this.roles = roles;
    }

    public UserVO(String account, String createtime, String avatar, String brief, List<Menus> menus,
                  List<Roles> roles) {
        this.account = account;
        this.createtime = createtime;
        this.avatar = avatar;
        this.brief = brief;
        this.menus = menus;
        this.roles = roles;
    }

    public UserVO() {
    }

    @Override
    public String toString() {
        return "UserVO{" +
                "account='" + account + '\'' +
                ", createtime='" + createtime + '\'' +
                ", avatar='" + avatar + '\'' +
                ", brief='" + brief + '\'' +
                ", menus=" + menus +
                ", roles=" + roles +
                '}';
    }
}
